< previous page page_503 next page >

Page 503
9f8044bafea36a1f728739c0bb58ef4c.gif
Establishing the environment by allocating a database connection handle (hDbc) using ODBC's SQLAllocConnect. You also need a valid data source name (DSN), user ID, and password for databases that require them.
9f8044bafea36a1f728739c0bb58ef4c.gif
Establishing the environment by allocating a SQL/database command statement handle (hStmt).
9f8044bafea36a1f728739c0bb58ef4c.gif
Working with the actual data by binding columns, opening and closing cursors, and moving through sets of records.
9f8044bafea36a1f728739c0bb58ef4c.gif
Deallocating a SQL/database command statement handle (hStmt).
9f8044bafea36a1f728739c0bb58ef4c.gif
Deallocating a database connection handle (hDbc).
9f8044bafea36a1f728739c0bb58ef4c.gif
Deallocating an environment handle (hEnv).
9f8044bafea36a1f728739c0bb58ef4c.gif
7. What are the advantages and disadvantages of using Data controls?
9f8044bafea36a1f728739c0bb58ef4c.gif
The advantages include ease of implementation, ease of maintenance when data access is relatively straightforward, and rapid development. Disadvantages include susceptibility to data control failure, less code reuse, and less ease of code duplication.
Day 20
9f8044bafea36a1f728739c0bb58ef4c.gif
1. What is the compartmental hierarchy for subsystems and their members?
9f8044bafea36a1f728739c0bb58ef4c.gif
Subsystems are compartmentalized into classes. Classes are compartmentalized into methods, properties, and events. Subsystem compartments communicate with one another through a common interface.
9f8044bafea36a1f728739c0bb58ef4c.gif
2. Why are subsystem interface classes so important?
9f8044bafea36a1f728739c0bb58ef4c.gif
Subsystem interface classes are important because changes to them can cause a debugging and maintenance nightmare.
9f8044bafea36a1f728739c0bb58ef4c.gif
3. What is a good way to decouple an actual form in the Graphical User Interface Subsystem from direct communications with the Database Access Subsystem?
9f8044bafea36a1f728739c0bb58ef4c.gif
By using form controller classes, business or domain classes, and data access (or persistence) classes.
9f8044bafea36a1f728739c0bb58ef4c.gif
4. What's the importance of collections of business classes in the Business Rules Subsystem?
9f8044bafea36a1f728739c0bb58ef4c.gif
Often, applications deal with several records at a time, for which collections of business classes are useful. Business class collections are, in a sense, queues or stores of data out of which form controllers request information to display. Collections can very well be seen as mini-object-oriented databases that help shield (or encapsulate) the rest of the application from the relational database.

 
< previous page page_503 next page >

If you like this book, buy it!